package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admin_role")
public class AdminRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "admin_role_id", type = IdType.ASSIGN_ID)
    private String adminRoleId;

    /**
     * 管理员外键
     */
    @TableField("admin_id")
    private String adminId;

    /**
     * 角色外键
     */
    @TableField("role_id")
    private String roleId;

}
